package com.play.ballen.mall.entity

import com.play.ballen.interfaces.BottomSheetEntityContract

data class MallSaleInfo(
    val level: List<MallBallLevel>?,
    val list: List<MallBallInfo>?
)

data class MallBallLevel(
    val id: String,
    val name: String
) : BottomSheetEntityContract {
    override fun getItemString(): String {
        return name
    }

    override fun equals(other: Any?): Boolean {
        return if (other is MallBallLevel) {
            other.id == this.id
        } else {
            super.equals(other)
        }
    }
}

data class MallBallInfo(
    val day: String,
    val id: String,
    val name: String,
    val no: String,
    val percent: String,
    val pic: String,
    val price: String,
    val task_count: String,
    val remain: Int,
    val selled: Int
)

data class MallRecordInfo(
    val add_time: String,
    val name: String,
    val no: String,
    val num: String,
    val pic: String,
    val total: String,  //总费用，单位BMT
    val price: String   //购买时价格，单位U
)

data class RateInfo(
    val rate: Float, //汇率，1个BMT兑换rate个USDT
    val __token__: String
)